<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div class="app">
        <moban1></moban1>
        <moban2></moban2>
    </div>
</body>
<template id="moban1">
    <div>
        <h1>模板一</h1>
    </div>
</template>
<template id="moban2">
    <div>
        <h1>模板二</h1>
    </div>
</template>
<script src="./vue.min.js"></script>
<script>
    new Vue({
        el:".app",
        data:{},
        components:{
            moban1:{
                template:"#moban1"
            },
            moban2:{
                template:"#moban2"
            }
        }
    })
</script>
</html>